<html>
<head>
  <title>Welcome to Grails</title>
  <meta name="layout" content="main"/>
</head>
<body>
<div class="section">
  <h1>Log In</h1>
</div>

<div class="section">

  <div class="entry errors">
  </div>

  <g:form url="[controller:'user',action:'login']">
    <fieldset>
      <div class="entry">
        <div class="label"><label>Username:</label></div>
        <div class="input">
          <input type="text" name="username" value="${params?.username}" style="width: 175px;"/>
        </div>
      </div>

      <div class="entry">
        <div class="label"><label>Password:</label></div>
        <div class="input">
          <input type="password" name="password" style="width: 175px;"/>
        </div>
      </div>

      <div class="entry">
        <div class="buttonBox">
          <input type="submit" value="Log In"/>
        </div>
      </div>

      <div class="notes">
        <g:link controller="user" action="register">Register New User</g:link>
      </div>

      <div class="subnotes">
        Or use a demo account:
        <ul>
          <li>yanglifan/pass123</li>
          <li>demouser/pass123</li>
        </ul>
      </div>

      <div class="entry">
        ${flash.message}
      </div>
    </fieldset>
  </g:form>
</div>
</body>
</html>